package com.study.fun;

import org.junit.jupiter.api.Test;

import java.util.function.BiConsumer;
import java.util.function.Function;

/**
 * @author zhuzi
 * 2024/6/19 15:48
 */
public class Fun01 {
    @Test
    public void biConsumer() {
        BiConsumer<String, String> consumer = (a, b) -> {
            System.out.println("哈哈" + a + ";" + b);
        };
        consumer.accept("a", "1");

        Function<String, Integer> fun = (a) -> Integer.parseInt(a);
        Integer apply = fun.apply("1");
        System.out.println(apply);
    }
}
